import type { RouteRecordRaw } from 'vue-router'
import { basicRouteMap } from './router-modules'
// import { AccessEnum } from '~@/utils/constant'

export default [
  {
    path: '/center',
    redirect: '/center/my-center',
    name: 'Center',
    meta: {
      title: '个人中心',
      // 使用自定义图片图标，支持大小、透明度和偏移设置
      icon: 'https://f.hotgrid.cn/electricity-service/news.jpg',
      iconSize: 28, // 默认大小（如果不设置 iconWidth/iconHeight 会使用这个值）
      iconWidth: 28, // 图标宽度，可单独设置
      iconHeight: 23, // 图标高度，可单独设置，实现自定义比例
      iconOpacity: 1, // 透明度
      iconOffset: { top: 4, left: -8 }, // 图标偏移：上移2px，右移1px
    },
    component: basicRouteMap.RouteView,
    children: [
      {
        path: '/profile/basic',
        name: 'ProfileBasic',
        component: () => import('~/pages/account/settings.vue'),
        meta: {
          title: '我的主页',
          locale: '我的主页',
          hideInMenu: true,
        },
      },
      // 我的证书英语怎么说呢？
      {
        path: '/mynine/certificate',
        name: 'Certificate',
        component: () => import('~/pages/certificate/projects.vue'),
        meta: {
          title: '我的证书',
          locale: '我的证书',
          hideInMenu: true,
        },
      },
      // 我的证书英语怎么说呢？
      {
        path: '/mynine/invoice',
        name: 'Invoice',
        component: () => import('~/pages/certificate/projects.vue'),
        meta: {
          title: '我的发票',
          locale: '我的发票',
          hideInMenu: true,
        },
      },
    ],
  },
  {
    path: '/link',
    redirect: '/link/iframe',
    name: 'Link',
    meta: {
      title: '考试报名',
      // 使用自定义图片图标，并设置大小、透明度和偏移
      icon: 'https://f.hotgrid.cn/electricity-service/6c.jpg',
      iconSize: 24, // 默认大小（如果不设置 iconWidth/iconHeight 会使用这个值）
      iconWidth: 28, // 图标宽度，可单独设置
      iconHeight: 23, // 图标高度，可单独设置，实现自定义比例
      iconOpacity: 1, // 透明度 0-1，1为完全不透明
      iconOffset: { top: 4, left: -8 }, // 图标偏移：上移2px，右移1px
      // 也可以使用 Ant Design 图标：icon: 'UserOutlined', ~/pages/exception/500.vue
    },
    children: [
      {
        path: '/resigration/list',
        name: 'DashboardAnalysis',
        component: () => import('~/pages/resigration/index.vue'),
        meta: {
          title: '在线报名',
        },
      },
      {
        path: '/myexamlist/myExam',
        name: 'DashboardmyExam',
        component: () => import('~/pages/myexamlist/index.vue'),
        meta: {
          title: '我的报名',
        },
      },
      {
        path: '/payment/guide',
        name: 'Paymentguide',
        component: () => import('~/pages/paymentguide/index.vue'),
        meta: {
          title: '缴费指南',
        },
      },
      {
        path: '/candidate/handbook',
        name: 'CandidateHandbook',
        component: () => import('~/pages/candidatehandbook/index.vue'),
        meta: {
          title: '考生手册',
        },
      },
      {
        path: '/myexamlist/detail',
        name: 'MyExamDetail',
        component: () => import('~/pages/myexamdetail/index.vue'),
        meta: {
          title: '报名详情',
          hideInMenu: true,
          parentKeys: ['/myexamlist/myExam'],
        },
      },
      {
        path: '/pages/innovice',
        name: 'Inovice',
        component: () => import('~/pages/innovice/index.vue'),
        meta: {
          title: '缴费',
          locale: '缴费',
          hideInMenu: true,
        },
      },
      {
        path: '/pages/payment',
        name: 'Payment',
        component: () => import('~/pages/payment/index.vue'),
        meta: {
          title: '开具发票',
          locale: '开具发票',
          hideInMenu: true,
        },
      },
      {
        path: '/form/regrationform',
        name: 'FormAdvanced',
        component: () => import('~/pages/regrationform/index.vue'),
        meta: {
          title: '在线报名  ',
          locale: '在线报名',
          hideInMenu: true,
          parentKeys: ['/resigration/list'],
        },
      },
      {
        path: '/form/makeupregistrationform',
        name: 'FormMakeUpRegistration',
        component: () => import('~/pages/makeupregistrationform/index.vue'),
        meta: {
          title: '在线报名  ',
          locale: '在线报名',
          hideInMenu: true,
          parentKeys: ['/resigration/list'],
        },
      },
    ],
  },
  {
    path: '/center',
    redirect: '/center/my-center',
    name: 'center',
    meta: {
      title: '个人中心',
      // 使用自定义图片图标，支持大小、透明度和偏移设置
      icon: 'https://f.hotgrid.cn/electricity-service/news.jpg',
      iconSize: 28, // 默认大小（如果不设置 iconWidth/iconHeight 会使用这个值）
      iconWidth: 28, // 图标宽度，可单独设置
      iconHeight: 23, // 图标高度，可单独设置，实现自定义比例
      iconOpacity: 1, // 透明度
      iconOffset: { top: 4, left: -8 }, // 图标偏移：上移2px，右移1px
    },
    component: basicRouteMap.RouteView,
    children: [
      {
        path: '/profile/basic',
        name: 'ProfileBasic',
        component: () => import('~/pages/account/settings.vue'),
        meta: {
          title: '我的资料',
          locale: '我的资料',
          hideInMenu: false,
        },
      },
      {
        path: '/profile/change-password',
        name: 'ChangePassword',
        component: () => import('~/pages/account/change-password.vue'),
        meta: {
          title: '修改密码',
          locale: '修改密码',
          hideInMenu: false,
        },
      },
      {
        path: '/mymessage/index',
        name: 'MyMessage',
        component: () => import('~/pages/mymessage/index.vue'),
        meta: {
          title: '我的消息',
          locale: '我的消息',
          hideInMenu: true,
        },
      },
      // 我的证书英语怎么说呢？
      {
        path: '/mynine/certificate',
        name: 'Certificate',
        component: () => import('~/pages/certificate/projects.vue'),
        meta: {
          title: '我的证书',
          locale: '我的证书',
          hideInMenu: true,
        },
      },
      // 我的证书英语怎么说呢？
      {
        path: '/mynine/invoice',
        name: 'Invoice',
        component: () => import('~/pages/certificate/projects.vue'),
        meta: {
          title: '我的发票',
          locale: '我的发票',
          hideInMenu: true,
        },
      },
    ],
  },
  // ~/pages/dashboard/workplace/index.vue ~/pages/profile/basic/index.vue

  // {
  //   path: '/link',
  //   redirect: '/link/iframe',
  //   name: 'Link',
  //   meta: {
  //     title: '答疑管理',
  //     icon: 'LinkOutlined',
  //   },
  //   component: basicRouteMap.RouteView,
  //   children: [
  //     {
  //       path: '/link/iframe',
  //       name: 'LinkIframe',
  //       component: basicRouteMap.Iframe,
  //       meta: {
  //         title: 'AntDesign',
  //         url: 'https://ant.design/',
  //       },
  //     },
  //     {
  //       path: '/link/antdv',
  //       name: 'LinkAntdv',
  //       component: basicRouteMap.Iframe,
  //       meta: {
  //         title: 'AntDesignVue',
  //         url: 'https://antdv.com/',
  //       },
  //     },
  //     {
  //       path: 'https://www.baidu.com',
  //       name: 'LinkExternal',
  //       meta: {
  //         title: '跳转百度',
  //         // target: '_self',
  //       },
  //     },
  //   ],
  // },
  // {
  //   path: '/profile',
  //   name: 'profile',
  //   redirect: '/profile/basic',
  //   meta: {
  //     title: 'menu.profile',
  //     icon: 'ProfileOutlined',
  //     locale: 'menu.profile',
  //   },
  //   component: basicRouteMap.RouteView,
  //   children: [
  //     {
  //       path: '/profile/basic',
  //       name: 'ProfileBasic',
  //       component: () => import('~/pages/profile/basic/index.vue'),
  //       meta: {
  //         title: 'menu.profile.basic',
  //         locale: 'menu.profile.basic',
  //       },
  //     },
  //   ],
  // },

  // // 内容发布
  // {
  //   path: '/result',
  //   redirect: '/result/success',
  //   name: 'Result',
  //   meta: {
  //     title: '内容发布',
  //     icon: 'CheckCircleOutlined',
  //     locale: 'menu.result',
  //   },
  //   component: basicRouteMap.RouteView,
  //   children: [
  //     {
  //       path: '/result/success',
  //       name: 'ResultSuccess',
  //       component: () => import('~/pages/result/success.vue'),
  //       meta: {
  //         title: '成功页',
  //         locale: 'menu.result.success',
  //       },
  //     },
  //     {
  //       path: '/result/fail',
  //       name: 'ResultFail',
  //       component: () => import('~/pages/result/fail.vue'),
  //       meta: {
  //         title: '失败页',
  //         locale: 'menu.result.fail',
  //       },
  //     },
  //   ],
  // },
  // {
  //   path: '/list',
  //   redirect: '/list/card-list',
  //   name: 'List',
  //   meta: {
  //     title: '缴费管理',
  //     icon: 'TableOutlined',
  //     locale: 'menu.list',
  //   },
  //   component: basicRouteMap.RouteView,
  //   children: [
  //     {
  //       path: '/list/card-list',
  //       name: 'CardList',
  //       component: () => import('~/pages/list/card-list.vue'),
  //       meta: {
  //         title: '卡片列表',
  //         locale: 'menu.list.card-list',
  //       },
  //     },
  //     {
  //       path: '/list/crud-table',
  //       name: 'CrudTable',
  //       component: () => import('~/pages/list/crud-table.vue'),
  //       meta: {
  //         title: '增删改查表格',
  //         locale: 'menu.list.crud-table',
  //       },
  //     },
  //     {
  //       path: '/list/basic-list',
  //       name: 'BasicList',
  //       component: () => import('~/pages/list/basic-list.vue'),
  //       meta: {
  //         title: '标准列表',
  //         locale: 'menu.list.basic-list',
  //       },
  //     },
  //     {
  //       path: '/list/search-list',
  //       name: 'SearchList',
  //       component: () => import('~/pages/list/search-list/index.vue'),
  //       meta: {
  //         title: '搜索列表',
  //         locale: 'menu.list.search-list',
  //       },
  //       redirect: '/list/search-list/articles',
  //       children: [
  //         {
  //           path: '/list/search-list/articles',
  //           name: 'SearchListArticles',
  //           component: () => import('~/pages/list/search-list/articles.vue'),
  //           meta: {
  //             title: '搜索列表（文章）',
  //             locale: 'menu.list.search-list.articles',
  //           },
  //         },
  //         {
  //           path: '/list/search-list/projects',
  //           name: 'SearchListProjects',
  //           component: () => import('~/pages/list/search-list/projects.vue'),
  //           meta: {
  //             title: '搜索列表（项目）',
  //             locale: 'menu.list.search-list.projects',
  //           },
  //         },
  //         {
  //           path: '/list/search-list/applications',
  //           name: 'SearchListApplications',
  //           component: () => import('~/pages/list/search-list/applications.vue'),
  //           meta: {
  //             title: '搜索列表（应用）',
  //             locale: 'menu.list.search-list.applications',
  //           },
  //         },
  //       ],
  //     },
  //   ],
  // },
  // {
  //   path: '/account',
  //   redirect: '/account/center',
  //   name: 'Account',
  //   meta: {
  //     title: '证书管理',
  //     icon: 'UserOutlined',
  //     locale: 'menu.account',
  //   },
  //   component: basicRouteMap.RouteView,
  //   children: [
  //     {
  //       path: '/account/center',
  //       name: 'AccountCenter',
  //       component: () => import('~/pages/account/center.vue'),
  //       meta: {
  //         title: '个人主页',
  //         locale: 'menu.account.center',
  //       },
  //     },
  //     {
  //       path: '/account/settings',
  //       name: 'AccountSettings',
  //       component: () => import('~/pages/account/settings.vue'),
  //       meta: {
  //         title: '个人设置',
  //         locale: 'menu.account.settings',
  //       },
  //     },
  //     {
  //       path: '/account/settings/:id',
  //       name: 'AccountSettings1',
  //       component: () => import('~/pages/account/settings.vue'),
  //       meta: {
  //         title: '个人设置1',
  //         locale: 'menu.account.settings',
  //         hideInMenu: true,
  //         parentKeys: ['/account/settings'],
  //       },
  //     },
  //   ],
  // },
] as RouteRecordRaw[]
